package com.coolingme.general;

/**
 * 客户类提出创建对象的请求
 *
 * @author wangyue
 * @date 2020/9/29 17:50
 */
public class Client {

    public static void main(String[] args) {
        ConcreteProtoType joey = new ConcreteProtoType("Joey", 24);
        ConcreteProtoType joeyClone = joey.clone();
        System.out.println(joey);
        System.out.println(joeyClone);
        // false，浅克隆
        System.out.println(joey == joeyClone);
    }

}
